/*
var inicio = 0;

$(document).ready(function () {
    
    $(window).resize(iniciar);
    $(window).scroll(iniciar);
    iniciar();
});     

function iniciar(){ 
    var w_li = '';
    var h_li = '';
    var w_tela = $(window).width();
    var h_tela = $(window).height();
    var n_ele = $('.tela_menu li').size();
    var div = n_ele > 3 ? 2 : 1;
    
    switch (n_ele) {
        case 1:
            w_li = '100%';
            break;

        case 2:
            w_li = '50%';
            break;

        case 3:
            w_li = '33.33%';
            break;

        case 4:
            w_li = '50%';
            break;

        case 5:
            w_li = '33.33%';
            break;

        case 6:
            w_li = '33.33%';
            break;

        default: w_li = '33.33%';
    }

    h_li = parseInt(h_tela) / div;

    $('.tela_menu li').css('width', w_li);
    $('.tela_menu li').css('height', h_li);
    
    var tempo = inicio == 1 ? 1:2000;
    
    setTimeout( function(){
        var w_cntimg = $('.content_img').width();
        var h_cntimg = $('.content_img').height();
        w_cntimg = parseInt(w_cntimg) / 2;
        h_cntimg = parseInt(h_cntimg) / 2;
        w_cntimg = '-'+  w_cntimg.toString()+'px';
        h_cntimg = '-'+h_cntimg.toString()+'px';
        
        $('.content_img').css('margin-top', h_cntimg);
        $('.content_img').css('margin-left',w_cntimg);
    
        var h_topo = $('.topo').height();
        var h_tlcnt =  parseInt(h_tela) - parseInt(h_topo);
        $('.lf_menu,.rg_cnt').css('height', h_tlcnt);

        var w_lf_menu = $('.lf_menu').width();

        var w_rg_cnt = parseInt(w_tela) - parseInt(w_lf_menu); 
        $('.rg_cnt').css('width', w_rg_cnt);
        
        inicio = 1;
        
    }  , tempo);
}
*/